//package com.xzs.data.mq;
//
//import com.alibaba.fastjson.JSONObject;
//import org.springframework.amqp.rabbit.annotation.RabbitHandler;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import java.util.Map;
//
//@Component
//@RabbitListener(queues = "xzs_test_2", containerFactory = "rabbitListenerContainerFactory")
//public class DeliverInvoiceReceiver {
//
//
//    @RabbitHandler
//    public void process(byte[] testMessage) {
//        if (testMessage == null) {
//            return;
//        }
//        String receiver = new String(testMessage);
//        System.out.println("从rabbitmq队列接{}收到交付数据:{}" + receiver);
//        try {
//            Map map = JSONObject.parseObject(receiver, Map.class);
//            System.out.println(receiver);
//        } catch (Exception e) {
//            System.out.println(e.getMessage() + e.getMessage());
//        }
//    }
//}